package mya.mes.mdc.db;

import mya.common.jpa.context.ServiceContext;
import mya.common.jpa.context.SystemLogic;

public class DbHelper {

    public static Object run(DbProcessService dbProcessService) throws Exception {
        SystemLogic logic = new SystemLogic() {
            @Override
            protected Object process(ServiceContext context) throws Exception {
                return dbProcessService.process(context);
            }
        };

        return logic.execute();
    }
}
